module Ram (

    // Input / inout
	input       [0:0]   clock,
	input       [0:0]   reset,
    input      [31:0]   addr,
	input       [0:0]   rw,

	input       [0:0]   en1h,
    inout       [7:0]   data1h,

	input       [0:0]   en1l,
    inout       [7:0]   data1l,
    
	input       [0:0]   en2h,
    inout       [7:0]   data2h,
    
	input       [0:0]   en2l,
    inout       [7:0]   data2l
    
    );

	// Memory
	reg [7:0]   Memory  [1023:0];


    always @(posedge(reset)) begin

        Memory[0]    = 8'b0;
        Memory[1]    = 8'b0;
        Memory[2]    = 8'b0;
        Memory[3]    = 8'b0;
        Memory[4]    = 8'b0;
        Memory[5]    = 8'b0;
        Memory[6]    = 8'b0;
        Memory[7]    = 8'b0;
        Memory[8]    = 8'b0;
        Memory[9]    = 8'b0;
        Memory[10]   = 8'b0;
        Memory[11]   = 8'b0;
        Memory[12]   = 8'b0;
        Memory[13]   = 8'b0;
        Memory[14]   = 8'b0;
        Memory[15]   = 8'b0;
        Memory[16]   = 8'b0;
        Memory[17]   = 8'b0;
        Memory[18]   = 8'b0;
        Memory[19]   = 8'b0;
        Memory[20]   = 8'b0;
        Memory[21]   = 8'b0;
        Memory[22]   = 8'b0;
        Memory[23]   = 8'b0;
        Memory[24]   = 8'b0;
        Memory[25]   = 8'b0;
        Memory[26]   = 8'b0;
        Memory[27]   = 8'b0;
        Memory[28]   = 8'b0;
        Memory[29]   = 8'b0;
        Memory[30]   = 8'b0;
        Memory[31]   = 8'b0;
        Memory[32]   = 8'b0;
        Memory[33]   = 8'b0;
        Memory[34]   = 8'b0;
        Memory[35]   = 8'b0;
        Memory[36]   = 8'b0;
        Memory[37]   = 8'b0;
        Memory[38]   = 8'b0;
        Memory[39]   = 8'b0;
        Memory[40]   = 8'b0;
        Memory[41]   = 8'b0;
        Memory[42]   = 8'b0;
        Memory[43]   = 8'b0;
        Memory[44]   = 8'b0;
        Memory[45]   = 8'b0;
        Memory[46]   = 8'b0;
        Memory[47]   = 8'b0;
        Memory[48]   = 8'b0;
        Memory[49]   = 8'b0;
        Memory[50]   = 8'b0;
        Memory[51]   = 8'b0;
        Memory[52]   = 8'b0;
        Memory[53]   = 8'b0;
        Memory[54]   = 8'b0;
        Memory[55]   = 8'b0;
        Memory[56]   = 8'b0;
        Memory[57]   = 8'b0;
        Memory[58]   = 8'b0;
        Memory[59]   = 8'b0;
        Memory[60]   = 8'b0;
        Memory[61]   = 8'b0;
        Memory[62]   = 8'b0;
        Memory[63]   = 8'b0;
        Memory[64]   = 8'b0;
        Memory[65]   = 8'b0;
        Memory[66]   = 8'b0;
        Memory[67]   = 8'b0;
        Memory[68]   = 8'b0;
        Memory[69]   = 8'b0;
        Memory[70]   = 8'b0;
        Memory[71]   = 8'b0;
        Memory[72]   = 8'b0;
        Memory[73]   = 8'b0;
        Memory[74]   = 8'b0;
        Memory[75]   = 8'b0;
        Memory[76]   = 8'b0;
        Memory[77]   = 8'b0;
        Memory[78]   = 8'b0;
        Memory[79]   = 8'b0;
        Memory[80]   = 8'b0;
        Memory[81]   = 8'b0;
        Memory[82]   = 8'b0;
        Memory[83]   = 8'b0;
        Memory[84]   = 8'b0;
        Memory[85]   = 8'b0;
        Memory[86]   = 8'b0;
        Memory[87]   = 8'b0;
        Memory[88]   = 8'b0;
        Memory[89]   = 8'b0;
        Memory[90]   = 8'b0;
        Memory[91]   = 8'b0;
        Memory[92]   = 8'b0;
        Memory[93]   = 8'b0;
        Memory[94]   = 8'b0;
        Memory[95]   = 8'b0;
        Memory[96]   = 8'b0;
        Memory[97]   = 8'b0;
        Memory[98]   = 8'b0;
        Memory[99]   = 8'b0;
        Memory[100]  = 8'b0;
        Memory[101]  = 8'b0;
        Memory[102]  = 8'b0;
        Memory[103]  = 8'b0;
        Memory[104]  = 8'b0;
        Memory[105]  = 8'b0;
        Memory[106]  = 8'b0;
        Memory[107]  = 8'b0;
        Memory[108]  = 8'b0;
        Memory[109]  = 8'b0;
        Memory[110]  = 8'b0;
        Memory[111]  = 8'b0;
        Memory[112]  = 8'b0;
        Memory[113]  = 8'b0;
        Memory[114]  = 8'b0;
        Memory[115]  = 8'b0;
        Memory[116]  = 8'b0;
        Memory[117]  = 8'b0;
        Memory[118]  = 8'b0;
        Memory[119]  = 8'b0;
        Memory[120]  = 8'b0;
        Memory[121]  = 8'b0;
        Memory[122]  = 8'b0;
        Memory[123]  = 8'b0;
        Memory[124]  = 8'b0;
        Memory[125]  = 8'b0;
        Memory[126]  = 8'b0;
        Memory[127]  = 8'b0;
        Memory[128]  = 8'b0;
        Memory[129]  = 8'b0;
        Memory[130]  = 8'b0;
        Memory[131]  = 8'b0;
        Memory[132]  = 8'b0;
        Memory[133]  = 8'b0;
        Memory[134]  = 8'b0;
        Memory[135]  = 8'b0;
        Memory[136]  = 8'b0;
        Memory[137]  = 8'b0;
        Memory[138]  = 8'b0;
        Memory[139]  = 8'b0;
        Memory[140]  = 8'b0;
        Memory[141]  = 8'b0;
        Memory[142]  = 8'b0;
        Memory[143]  = 8'b0;
        Memory[144]  = 8'b0;
        Memory[145]  = 8'b0;
        Memory[146]  = 8'b0;
        Memory[147]  = 8'b0;
        Memory[148]  = 8'b0;
        Memory[149]  = 8'b0;
        Memory[150]  = 8'b0;
        Memory[151]  = 8'b0;
        Memory[152]  = 8'b0;
        Memory[153]  = 8'b0;
        Memory[154]  = 8'b0;
        Memory[155]  = 8'b0;
        Memory[156]  = 8'b0;
        Memory[157]  = 8'b0;
        Memory[158]  = 8'b0;
        Memory[159]  = 8'b0;
        Memory[160]  = 8'b0;
        Memory[161]  = 8'b0;
        Memory[162]  = 8'b0;
        Memory[163]  = 8'b0;
        Memory[164]  = 8'b0;
        Memory[165]  = 8'b0;
        Memory[166]  = 8'b0;
        Memory[167]  = 8'b0;
        Memory[168]  = 8'b0;
        Memory[169]  = 8'b0;
        Memory[170]  = 8'b0;
        Memory[171]  = 8'b0;
        Memory[172]  = 8'b0;
        Memory[173]  = 8'b0;
        Memory[174]  = 8'b0;
        Memory[175]  = 8'b0;
        Memory[176]  = 8'b0;
        Memory[177]  = 8'b0;
        Memory[178]  = 8'b0;
        Memory[179]  = 8'b0;
        Memory[180]  = 8'b0;
        Memory[181]  = 8'b0;
        Memory[182]  = 8'b0;
        Memory[183]  = 8'b0;
        Memory[184]  = 8'b0;
        Memory[185]  = 8'b0;
        Memory[186]  = 8'b0;
        Memory[187]  = 8'b0;
        Memory[188]  = 8'b0;
        Memory[189]  = 8'b0;
        Memory[190]  = 8'b0;
        Memory[191]  = 8'b0;
        Memory[192]  = 8'b0;
        Memory[193]  = 8'b0;
        Memory[194]  = 8'b0;
        Memory[195]  = 8'b0;
        Memory[196]  = 8'b0;
        Memory[197]  = 8'b0;
        Memory[198]  = 8'b0;
        Memory[199]  = 8'b0;
        Memory[200]  = 8'b0;
        Memory[201]  = 8'b0;
        Memory[202]  = 8'b0;
        Memory[203]  = 8'b0;
        Memory[204]  = 8'b0;
        Memory[205]  = 8'b0;
        Memory[206]  = 8'b0;
        Memory[207]  = 8'b0;
        Memory[208]  = 8'b0;
        Memory[209]  = 8'b0;
        Memory[210]  = 8'b0;
        Memory[211]  = 8'b0;
        Memory[212]  = 8'b0;
        Memory[213]  = 8'b0;
        Memory[214]  = 8'b0;
        Memory[215]  = 8'b0;
        Memory[216]  = 8'b0;
        Memory[217]  = 8'b0;
        Memory[218]  = 8'b0;
        Memory[219]  = 8'b0;
        Memory[220]  = 8'b0;
        Memory[221]  = 8'b0;
        Memory[222]  = 8'b0;
        Memory[223]  = 8'b0;
        Memory[224]  = 8'b0;
        Memory[225]  = 8'b0;
        Memory[226]  = 8'b0;
        Memory[227]  = 8'b0;
        Memory[228]  = 8'b0;
        Memory[229]  = 8'b0;
        Memory[230]  = 8'b0;
        Memory[231]  = 8'b0;
        Memory[232]  = 8'b0;
        Memory[233]  = 8'b0;
        Memory[234]  = 8'b0;
        Memory[235]  = 8'b0;
        Memory[236]  = 8'b0;
        Memory[237]  = 8'b0;
        Memory[238]  = 8'b0;
        Memory[239]  = 8'b0;
        Memory[240]  = 8'b0;
        Memory[241]  = 8'b0;
        Memory[242]  = 8'b0;
        Memory[243]  = 8'b0;
        Memory[244]  = 8'b0;
        Memory[245]  = 8'b0;
        Memory[246]  = 8'b0;
        Memory[247]  = 8'b0;
        Memory[248]  = 8'b0;
        Memory[249]  = 8'b0;
        Memory[250]  = 8'b0;
        Memory[251]  = 8'b0;
        Memory[252]  = 8'b0;
        Memory[253]  = 8'b0;
        Memory[254]  = 8'b0;
        Memory[255]  = 8'b0;
        Memory[256]  = 8'b0;
        Memory[257]  = 8'b0;
        Memory[258]  = 8'b0;
        Memory[259]  = 8'b0;
        Memory[260]  = 8'b0;
        Memory[261]  = 8'b0;
        Memory[262]  = 8'b0;
        Memory[263]  = 8'b0;
        Memory[264]  = 8'b0;
        Memory[265]  = 8'b0;
        Memory[266]  = 8'b0;
        Memory[267]  = 8'b0;
        Memory[268]  = 8'b0;
        Memory[269]  = 8'b0;
        Memory[270]  = 8'b0;
        Memory[271]  = 8'b0;
        Memory[272]  = 8'b0;
        Memory[273]  = 8'b0;
        Memory[274]  = 8'b0;
        Memory[275]  = 8'b0;
        Memory[276]  = 8'b0;
        Memory[277]  = 8'b0;
        Memory[278]  = 8'b0;
        Memory[279]  = 8'b0;
        Memory[280]  = 8'b0;
        Memory[281]  = 8'b0;
        Memory[282]  = 8'b0;
        Memory[283]  = 8'b0;
        Memory[284]  = 8'b0;
        Memory[285]  = 8'b0;
        Memory[286]  = 8'b0;
        Memory[287]  = 8'b0;
        Memory[288]  = 8'b0;
        Memory[289]  = 8'b0;
        Memory[290]  = 8'b0;
        Memory[291]  = 8'b0;
        Memory[292]  = 8'b0;
        Memory[293]  = 8'b0;
        Memory[294]  = 8'b0;
        Memory[295]  = 8'b0;
        Memory[296]  = 8'b0;
        Memory[297]  = 8'b0;
        Memory[298]  = 8'b0;
        Memory[299]  = 8'b0;
        Memory[300]  = 8'b0;
        Memory[301]  = 8'b0;
        Memory[302]  = 8'b0;
        Memory[303]  = 8'b0;
        Memory[304]  = 8'b0;
        Memory[305]  = 8'b0;
        Memory[306]  = 8'b0;
        Memory[307]  = 8'b0;
        Memory[308]  = 8'b0;
        Memory[309]  = 8'b0;
        Memory[310]  = 8'b0;
        Memory[311]  = 8'b0;
        Memory[312]  = 8'b0;
        Memory[313]  = 8'b0;
        Memory[314]  = 8'b0;
        Memory[315]  = 8'b0;
        Memory[316]  = 8'b0;
        Memory[317]  = 8'b0;
        Memory[318]  = 8'b0;
        Memory[319]  = 8'b0;
        Memory[320]  = 8'b0;
        Memory[321]  = 8'b0;
        Memory[322]  = 8'b0;
        Memory[323]  = 8'b0;
        Memory[324]  = 8'b0;
        Memory[325]  = 8'b0;
        Memory[326]  = 8'b0;
        Memory[327]  = 8'b0;
        Memory[328]  = 8'b0;
        Memory[329]  = 8'b0;
        Memory[330]  = 8'b0;
        Memory[331]  = 8'b0;
        Memory[332]  = 8'b0;
        Memory[333]  = 8'b0;
        Memory[334]  = 8'b0;
        Memory[335]  = 8'b0;
        Memory[336]  = 8'b0;
        Memory[337]  = 8'b0;
        Memory[338]  = 8'b0;
        Memory[339]  = 8'b0;
        Memory[340]  = 8'b0;
        Memory[341]  = 8'b0;
        Memory[342]  = 8'b0;
        Memory[343]  = 8'b0;
        Memory[344]  = 8'b0;
        Memory[345]  = 8'b0;
        Memory[346]  = 8'b0;
        Memory[347]  = 8'b0;
        Memory[348]  = 8'b0;
        Memory[349]  = 8'b0;
        Memory[350]  = 8'b0;
        Memory[351]  = 8'b0;
        Memory[352]  = 8'b0;
        Memory[353]  = 8'b0;
        Memory[354]  = 8'b0;
        Memory[355]  = 8'b0;
        Memory[356]  = 8'b0;
        Memory[357]  = 8'b0;
        Memory[358]  = 8'b0;
        Memory[359]  = 8'b0;
        Memory[360]  = 8'b0;
        Memory[361]  = 8'b0;
        Memory[362]  = 8'b0;
        Memory[363]  = 8'b0;
        Memory[364]  = 8'b0;
        Memory[365]  = 8'b0;
        Memory[366]  = 8'b0;
        Memory[367]  = 8'b0;
        Memory[368]  = 8'b0;
        Memory[369]  = 8'b0;
        Memory[370]  = 8'b0;
        Memory[371]  = 8'b0;
        Memory[372]  = 8'b0;
        Memory[373]  = 8'b0;
        Memory[374]  = 8'b0;
        Memory[375]  = 8'b0;
        Memory[376]  = 8'b0;
        Memory[377]  = 8'b0;
        Memory[378]  = 8'b0;
        Memory[379]  = 8'b0;
        Memory[380]  = 8'b0;
        Memory[381]  = 8'b0;
        Memory[382]  = 8'b0;
        Memory[383]  = 8'b0;
        Memory[384]  = 8'b0;
        Memory[385]  = 8'b0;
        Memory[386]  = 8'b0;
        Memory[387]  = 8'b0;
        Memory[388]  = 8'b0;
        Memory[389]  = 8'b0;
        Memory[390]  = 8'b0;
        Memory[391]  = 8'b0;
        Memory[392]  = 8'b0;
        Memory[393]  = 8'b0;
        Memory[394]  = 8'b0;
        Memory[395]  = 8'b0;
        Memory[396]  = 8'b0;
        Memory[397]  = 8'b0;
        Memory[398]  = 8'b0;
        Memory[399]  = 8'b0;
        Memory[400]  = 8'b0;
        Memory[401]  = 8'b0;
        Memory[402]  = 8'b0;
        Memory[403]  = 8'b0;
        Memory[404]  = 8'b0;
        Memory[405]  = 8'b0;
        Memory[406]  = 8'b0;
        Memory[407]  = 8'b0;
        Memory[408]  = 8'b0;
        Memory[409]  = 8'b0;
        Memory[410]  = 8'b0;
        Memory[411]  = 8'b0;
        Memory[412]  = 8'b0;
        Memory[413]  = 8'b0;
        Memory[414]  = 8'b0;
        Memory[415]  = 8'b0;
        Memory[416]  = 8'b0;
        Memory[417]  = 8'b0;
        Memory[418]  = 8'b0;
        Memory[419]  = 8'b0;
        Memory[420]  = 8'b0;
        Memory[421]  = 8'b0;
        Memory[422]  = 8'b0;
        Memory[423]  = 8'b0;
        Memory[424]  = 8'b0;
        Memory[425]  = 8'b0;
        Memory[426]  = 8'b0;
        Memory[427]  = 8'b0;
        Memory[428]  = 8'b0;
        Memory[429]  = 8'b0;
        Memory[430]  = 8'b0;
        Memory[431]  = 8'b0;
        Memory[432]  = 8'b0;
        Memory[433]  = 8'b0;
        Memory[434]  = 8'b0;
        Memory[435]  = 8'b0;
        Memory[436]  = 8'b0;
        Memory[437]  = 8'b0;
        Memory[438]  = 8'b0;
        Memory[439]  = 8'b0;
        Memory[440]  = 8'b0;
        Memory[441]  = 8'b0;
        Memory[442]  = 8'b0;
        Memory[443]  = 8'b0;
        Memory[444]  = 8'b0;
        Memory[445]  = 8'b0;
        Memory[446]  = 8'b0;
        Memory[447]  = 8'b0;
        Memory[448]  = 8'b0;
        Memory[449]  = 8'b0;
        Memory[450]  = 8'b0;
        Memory[451]  = 8'b0;
        Memory[452]  = 8'b0;
        Memory[453]  = 8'b0;
        Memory[454]  = 8'b0;
        Memory[455]  = 8'b0;
        Memory[456]  = 8'b0;
        Memory[457]  = 8'b0;
        Memory[458]  = 8'b0;
        Memory[459]  = 8'b0;
        Memory[460]  = 8'b0;
        Memory[461]  = 8'b0;
        Memory[462]  = 8'b0;
        Memory[463]  = 8'b0;
        Memory[464]  = 8'b0;
        Memory[465]  = 8'b0;
        Memory[466]  = 8'b0;
        Memory[467]  = 8'b0;
        Memory[468]  = 8'b0;
        Memory[469]  = 8'b0;
        Memory[470]  = 8'b0;
        Memory[471]  = 8'b0;
        Memory[472]  = 8'b0;
        Memory[473]  = 8'b0;
        Memory[474]  = 8'b0;
        Memory[475]  = 8'b0;
        Memory[476]  = 8'b0;
        Memory[477]  = 8'b0;
        Memory[478]  = 8'b0;
        Memory[479]  = 8'b0;
        Memory[480]  = 8'b0;
        Memory[481]  = 8'b0;
        Memory[482]  = 8'b0;
        Memory[483]  = 8'b0;
        Memory[484]  = 8'b0;
        Memory[485]  = 8'b0;
        Memory[486]  = 8'b0;
        Memory[487]  = 8'b0;
        Memory[488]  = 8'b0;
        Memory[489]  = 8'b0;
        Memory[490]  = 8'b0;
        Memory[491]  = 8'b0;
        Memory[492]  = 8'b0;
        Memory[493]  = 8'b0;
        Memory[494]  = 8'b0;
        Memory[495]  = 8'b0;
        Memory[496]  = 8'b0;
        Memory[497]  = 8'b0;
        Memory[498]  = 8'b0;
        Memory[499]  = 8'b0;
        Memory[500]  = 8'b0;
        Memory[501]  = 8'b0;
        Memory[502]  = 8'b0;
        Memory[503]  = 8'b0;
        Memory[504]  = 8'b0;
        Memory[505]  = 8'b0;
        Memory[506]  = 8'b0;
        Memory[507]  = 8'b0;
        Memory[508]  = 8'b0;
        Memory[509]  = 8'b0;
        Memory[510]  = 8'b0;
        Memory[511]  = 8'b0;
        Memory[512]  = 8'b0;
        Memory[513]  = 8'b0;
        Memory[514]  = 8'b0;
        Memory[515]  = 8'b0;
        Memory[516]  = 8'b0;
        Memory[517]  = 8'b0;
        Memory[518]  = 8'b0;
        Memory[519]  = 8'b0;
        Memory[520]  = 8'b0;
        Memory[521]  = 8'b0;
        Memory[522]  = 8'b0;
        Memory[523]  = 8'b0;
        Memory[524]  = 8'b0;
        Memory[525]  = 8'b0;
        Memory[526]  = 8'b0;
        Memory[527]  = 8'b0;
        Memory[528]  = 8'b0;
        Memory[529]  = 8'b0;
        Memory[530]  = 8'b0;
        Memory[531]  = 8'b0;
        Memory[532]  = 8'b0;
        Memory[533]  = 8'b0;
        Memory[534]  = 8'b0;
        Memory[535]  = 8'b0;
        Memory[536]  = 8'b0;
        Memory[537]  = 8'b0;
        Memory[538]  = 8'b0;
        Memory[539]  = 8'b0;
        Memory[540]  = 8'b0;
        Memory[541]  = 8'b0;
        Memory[542]  = 8'b0;
        Memory[543]  = 8'b0;
        Memory[544]  = 8'b0;
        Memory[545]  = 8'b0;
        Memory[546]  = 8'b0;
        Memory[547]  = 8'b0;
        Memory[548]  = 8'b0;
        Memory[549]  = 8'b0;
        Memory[550]  = 8'b0;
        Memory[551]  = 8'b0;
        Memory[552]  = 8'b0;
        Memory[553]  = 8'b0;
        Memory[554]  = 8'b0;
        Memory[555]  = 8'b0;
        Memory[556]  = 8'b0;
        Memory[557]  = 8'b0;
        Memory[558]  = 8'b0;
        Memory[559]  = 8'b0;
        Memory[560]  = 8'b0;
        Memory[561]  = 8'b0;
        Memory[562]  = 8'b0;
        Memory[563]  = 8'b0;
        Memory[564]  = 8'b0;
        Memory[565]  = 8'b0;
        Memory[566]  = 8'b0;
        Memory[567]  = 8'b0;
        Memory[568]  = 8'b0;
        Memory[569]  = 8'b0;
        Memory[570]  = 8'b0;
        Memory[571]  = 8'b0;
        Memory[572]  = 8'b0;
        Memory[573]  = 8'b0;
        Memory[574]  = 8'b0;
        Memory[575]  = 8'b0;
        Memory[576]  = 8'b0;
        Memory[577]  = 8'b0;
        Memory[578]  = 8'b0;
        Memory[579]  = 8'b0;
        Memory[580]  = 8'b0;
        Memory[581]  = 8'b0;
        Memory[582]  = 8'b0;
        Memory[583]  = 8'b0;
        Memory[584]  = 8'b0;
        Memory[585]  = 8'b0;
        Memory[586]  = 8'b0;
        Memory[587]  = 8'b0;
        Memory[588]  = 8'b0;
        Memory[589]  = 8'b0;
        Memory[590]  = 8'b0;
        Memory[591]  = 8'b0;
        Memory[592]  = 8'b0;
        Memory[593]  = 8'b0;
        Memory[594]  = 8'b0;
        Memory[595]  = 8'b0;
        Memory[596]  = 8'b0;
        Memory[597]  = 8'b0;
        Memory[598]  = 8'b0;
        Memory[599]  = 8'b0;
        Memory[600]  = 8'b0;
        Memory[601]  = 8'b0;
        Memory[602]  = 8'b0;
        Memory[603]  = 8'b0;
        Memory[604]  = 8'b0;
        Memory[605]  = 8'b0;
        Memory[606]  = 8'b0;
        Memory[607]  = 8'b0;
        Memory[608]  = 8'b0;
        Memory[609]  = 8'b0;
        Memory[610]  = 8'b0;
        Memory[611]  = 8'b0;
        Memory[612]  = 8'b0;
        Memory[613]  = 8'b0;
        Memory[614]  = 8'b0;
        Memory[615]  = 8'b0;
        Memory[616]  = 8'b0;
        Memory[617]  = 8'b0;
        Memory[618]  = 8'b0;
        Memory[619]  = 8'b0;
        Memory[620]  = 8'b0;
        Memory[621]  = 8'b0;
        Memory[622]  = 8'b0;
        Memory[623]  = 8'b0;
        Memory[624]  = 8'b0;
        Memory[625]  = 8'b0;
        Memory[626]  = 8'b0;
        Memory[627]  = 8'b0;
        Memory[628]  = 8'b0;
        Memory[629]  = 8'b0;
        Memory[630]  = 8'b0;
        Memory[631]  = 8'b0;
        Memory[632]  = 8'b0;
        Memory[633]  = 8'b0;
        Memory[634]  = 8'b0;
        Memory[635]  = 8'b0;
        Memory[636]  = 8'b0;
        Memory[637]  = 8'b0;
        Memory[638]  = 8'b0;
        Memory[639]  = 8'b0;
        Memory[640]  = 8'b0;
        Memory[641]  = 8'b0;
        Memory[642]  = 8'b0;
        Memory[643]  = 8'b0;
        Memory[644]  = 8'b0;
        Memory[645]  = 8'b0;
        Memory[646]  = 8'b0;
        Memory[647]  = 8'b0;
        Memory[648]  = 8'b0;
        Memory[649]  = 8'b0;
        Memory[650]  = 8'b0;
        Memory[651]  = 8'b0;
        Memory[652]  = 8'b0;
        Memory[653]  = 8'b0;
        Memory[654]  = 8'b0;
        Memory[655]  = 8'b0;
        Memory[656]  = 8'b0;
        Memory[657]  = 8'b0;
        Memory[658]  = 8'b0;
        Memory[659]  = 8'b0;
        Memory[660]  = 8'b0;
        Memory[661]  = 8'b0;
        Memory[662]  = 8'b0;
        Memory[663]  = 8'b0;
        Memory[664]  = 8'b0;
        Memory[665]  = 8'b0;
        Memory[666]  = 8'b0;
        Memory[667]  = 8'b0;
        Memory[668]  = 8'b0;
        Memory[669]  = 8'b0;
        Memory[670]  = 8'b0;
        Memory[671]  = 8'b0;
        Memory[672]  = 8'b0;
        Memory[673]  = 8'b0;
        Memory[674]  = 8'b0;
        Memory[675]  = 8'b0;
        Memory[676]  = 8'b0;
        Memory[677]  = 8'b0;
        Memory[678]  = 8'b0;
        Memory[679]  = 8'b0;
        Memory[680]  = 8'b0;
        Memory[681]  = 8'b0;
        Memory[682]  = 8'b0;
        Memory[683]  = 8'b0;
        Memory[684]  = 8'b0;
        Memory[685]  = 8'b0;
        Memory[686]  = 8'b0;
        Memory[687]  = 8'b0;
        Memory[688]  = 8'b0;
        Memory[689]  = 8'b0;
        Memory[690]  = 8'b0;
        Memory[691]  = 8'b0;
        Memory[692]  = 8'b0;
        Memory[693]  = 8'b0;
        Memory[694]  = 8'b0;
        Memory[695]  = 8'b0;
        Memory[696]  = 8'b0;
        Memory[697]  = 8'b0;
        Memory[698]  = 8'b0;
        Memory[699]  = 8'b0;
        Memory[700]  = 8'b0;
        Memory[701]  = 8'b0;
        Memory[702]  = 8'b0;
        Memory[703]  = 8'b0;
        Memory[704]  = 8'b0;
        Memory[705]  = 8'b0;
        Memory[706]  = 8'b0;
        Memory[707]  = 8'b0;
        Memory[708]  = 8'b0;
        Memory[709]  = 8'b0;
        Memory[710]  = 8'b0;
        Memory[711]  = 8'b0;
        Memory[712]  = 8'b0;
        Memory[713]  = 8'b0;
        Memory[714]  = 8'b0;
        Memory[715]  = 8'b0;
        Memory[716]  = 8'b0;
        Memory[717]  = 8'b0;
        Memory[718]  = 8'b0;
        Memory[719]  = 8'b0;
        Memory[720]  = 8'b0;
        Memory[721]  = 8'b0;
        Memory[722]  = 8'b0;
        Memory[723]  = 8'b0;
        Memory[724]  = 8'b0;
        Memory[725]  = 8'b0;
        Memory[726]  = 8'b0;
        Memory[727]  = 8'b0;
        Memory[728]  = 8'b0;
        Memory[729]  = 8'b0;
        Memory[730]  = 8'b0;
        Memory[731]  = 8'b0;
        Memory[732]  = 8'b0;
        Memory[733]  = 8'b0;
        Memory[734]  = 8'b0;
        Memory[735]  = 8'b0;
        Memory[736]  = 8'b0;
        Memory[737]  = 8'b0;
        Memory[738]  = 8'b0;
        Memory[739]  = 8'b0;
        Memory[740]  = 8'b0;
        Memory[741]  = 8'b0;
        Memory[742]  = 8'b0;
        Memory[743]  = 8'b0;
        Memory[744]  = 8'b0;
        Memory[745]  = 8'b0;
        Memory[746]  = 8'b0;
        Memory[747]  = 8'b0;
        Memory[748]  = 8'b0;
        Memory[749]  = 8'b0;
        Memory[750]  = 8'b0;
        Memory[751]  = 8'b0;
        Memory[752]  = 8'b0;
        Memory[753]  = 8'b0;
        Memory[754]  = 8'b0;
        Memory[755]  = 8'b0;
        Memory[756]  = 8'b0;
        Memory[757]  = 8'b0;
        Memory[758]  = 8'b0;
        Memory[759]  = 8'b0;
        Memory[760]  = 8'b0;
        Memory[761]  = 8'b0;
        Memory[762]  = 8'b0;
        Memory[763]  = 8'b0;
        Memory[764]  = 8'b0;
        Memory[765]  = 8'b0;
        Memory[766]  = 8'b0;
        Memory[767]  = 8'b0;
        Memory[768]  = 8'b0;
        Memory[769]  = 8'b0;
        Memory[770]  = 8'b0;
        Memory[771]  = 8'b0;
        Memory[772]  = 8'b0;
        Memory[773]  = 8'b0;
        Memory[774]  = 8'b0;
        Memory[775]  = 8'b0;
        Memory[776]  = 8'b0;
        Memory[777]  = 8'b0;
        Memory[778]  = 8'b0;
        Memory[779]  = 8'b0;
        Memory[780]  = 8'b0;
        Memory[781]  = 8'b0;
        Memory[782]  = 8'b0;
        Memory[783]  = 8'b0;
        Memory[784]  = 8'b0;
        Memory[785]  = 8'b0;
        Memory[786]  = 8'b0;
        Memory[787]  = 8'b0;
        Memory[788]  = 8'b0;
        Memory[789]  = 8'b0;
        Memory[790]  = 8'b0;
        Memory[791]  = 8'b0;
        Memory[792]  = 8'b0;
        Memory[793]  = 8'b0;
        Memory[794]  = 8'b0;
        Memory[795]  = 8'b0;
        Memory[796]  = 8'b0;
        Memory[797]  = 8'b0;
        Memory[798]  = 8'b0;
        Memory[799]  = 8'b0;
        Memory[800]  = 8'b0;
        Memory[801]  = 8'b0;
        Memory[802]  = 8'b0;
        Memory[803]  = 8'b0;
        Memory[804]  = 8'b0;
        Memory[805]  = 8'b0;
        Memory[806]  = 8'b0;
        Memory[807]  = 8'b0;
        Memory[808]  = 8'b0;
        Memory[809]  = 8'b0;
        Memory[810]  = 8'b0;
        Memory[811]  = 8'b0;
        Memory[812]  = 8'b0;
        Memory[813]  = 8'b0;
        Memory[814]  = 8'b0;
        Memory[815]  = 8'b0;
        Memory[816]  = 8'b0;
        Memory[817]  = 8'b0;
        Memory[818]  = 8'b0;
        Memory[819]  = 8'b0;
        Memory[820]  = 8'b0;
        Memory[821]  = 8'b0;
        Memory[822]  = 8'b0;
        Memory[823]  = 8'b0;
        Memory[824]  = 8'b0;
        Memory[825]  = 8'b0;
        Memory[826]  = 8'b0;
        Memory[827]  = 8'b0;
        Memory[828]  = 8'b0;
        Memory[829]  = 8'b0;
        Memory[830]  = 8'b0;
        Memory[831]  = 8'b0;
        Memory[832]  = 8'b0;
        Memory[833]  = 8'b0;
        Memory[834]  = 8'b0;
        Memory[835]  = 8'b0;
        Memory[836]  = 8'b0;
        Memory[837]  = 8'b0;
        Memory[838]  = 8'b0;
        Memory[839]  = 8'b0;
        Memory[840]  = 8'b0;
        Memory[841]  = 8'b0;
        Memory[842]  = 8'b0;
        Memory[843]  = 8'b0;
        Memory[844]  = 8'b0;
        Memory[845]  = 8'b0;
        Memory[846]  = 8'b0;
        Memory[847]  = 8'b0;
        Memory[848]  = 8'b0;
        Memory[849]  = 8'b0;
        Memory[850]  = 8'b0;
        Memory[851]  = 8'b0;
        Memory[852]  = 8'b0;
        Memory[853]  = 8'b0;
        Memory[854]  = 8'b0;
        Memory[855]  = 8'b0;
        Memory[856]  = 8'b0;
        Memory[857]  = 8'b0;
        Memory[858]  = 8'b0;
        Memory[859]  = 8'b0;
        Memory[860]  = 8'b0;
        Memory[861]  = 8'b0;
        Memory[862]  = 8'b0;
        Memory[863]  = 8'b0;
        Memory[864]  = 8'b0;
        Memory[865]  = 8'b0;
        Memory[866]  = 8'b0;
        Memory[867]  = 8'b0;
        Memory[868]  = 8'b0;
        Memory[869]  = 8'b0;
        Memory[870]  = 8'b0;
        Memory[871]  = 8'b0;
        Memory[872]  = 8'b0;
        Memory[873]  = 8'b0;
        Memory[874]  = 8'b0;
        Memory[875]  = 8'b0;
        Memory[876]  = 8'b0;
        Memory[877]  = 8'b0;
        Memory[878]  = 8'b0;
        Memory[879]  = 8'b0;
        Memory[880]  = 8'b0;
        Memory[881]  = 8'b0;
        Memory[882]  = 8'b0;
        Memory[883]  = 8'b0;
        Memory[884]  = 8'b0;
        Memory[885]  = 8'b0;
        Memory[886]  = 8'b0;
        Memory[887]  = 8'b0;
        Memory[888]  = 8'b0;
        Memory[889]  = 8'b0;
        Memory[890]  = 8'b0;
        Memory[891]  = 8'b0;
        Memory[892]  = 8'b0;
        Memory[893]  = 8'b0;
        Memory[894]  = 8'b0;
        Memory[895]  = 8'b0;
        Memory[896]  = 8'b0;
        Memory[897]  = 8'b0;
        Memory[898]  = 8'b0;
        Memory[899]  = 8'b0;
        Memory[900]  = 8'b0;
        Memory[901]  = 8'b0;
        Memory[902]  = 8'b0;
        Memory[903]  = 8'b0;
        Memory[904]  = 8'b0;
        Memory[905]  = 8'b0;
        Memory[906]  = 8'b0;
        Memory[907]  = 8'b0;
        Memory[908]  = 8'b0;
        Memory[909]  = 8'b0;
        Memory[910]  = 8'b0;
        Memory[911]  = 8'b0;
        Memory[912]  = 8'b0;
        Memory[913]  = 8'b0;
        Memory[914]  = 8'b0;
        Memory[915]  = 8'b0;
        Memory[916]  = 8'b0;
        Memory[917]  = 8'b0;
        Memory[918]  = 8'b0;
        Memory[919]  = 8'b0;
        Memory[920]  = 8'b0;
        Memory[921]  = 8'b0;
        Memory[922]  = 8'b0;
        Memory[923]  = 8'b0;
        Memory[924]  = 8'b0;
        Memory[925]  = 8'b0;
        Memory[926]  = 8'b0;
        Memory[927]  = 8'b0;
        Memory[928]  = 8'b0;
        Memory[929]  = 8'b0;
        Memory[930]  = 8'b0;
        Memory[931]  = 8'b0;
        Memory[932]  = 8'b0;
        Memory[933]  = 8'b0;
        Memory[934]  = 8'b0;
        Memory[935]  = 8'b0;
        Memory[936]  = 8'b0;
        Memory[937]  = 8'b0;
        Memory[938]  = 8'b0;
        Memory[939]  = 8'b0;
        Memory[940]  = 8'b0;
        Memory[941]  = 8'b0;
        Memory[942]  = 8'b0;
        Memory[943]  = 8'b0;
        Memory[944]  = 8'b0;
        Memory[945]  = 8'b0;
        Memory[946]  = 8'b0;
        Memory[947]  = 8'b0;
        Memory[948]  = 8'b0;
        Memory[949]  = 8'b0;
        Memory[950]  = 8'b0;
        Memory[951]  = 8'b0;
        Memory[952]  = 8'b0;
        Memory[953]  = 8'b0;
        Memory[954]  = 8'b0;
        Memory[955]  = 8'b0;
        Memory[956]  = 8'b0;
        Memory[957]  = 8'b0;
        Memory[958]  = 8'b0;
        Memory[959]  = 8'b0;
        Memory[960]  = 8'b0;
        Memory[961]  = 8'b0;
        Memory[962]  = 8'b0;
        Memory[963]  = 8'b0;
        Memory[964]  = 8'b0;
        Memory[965]  = 8'b0;
        Memory[966]  = 8'b0;
        Memory[967]  = 8'b0;
        Memory[968]  = 8'b0;
        Memory[969]  = 8'b0;
        Memory[970]  = 8'b0;
        Memory[971]  = 8'b0;
        Memory[972]  = 8'b0;
        Memory[973]  = 8'b0;
        Memory[974]  = 8'b0;
        Memory[975]  = 8'b0;
        Memory[976]  = 8'b0;
        Memory[977]  = 8'b0;
        Memory[978]  = 8'b0;
        Memory[979]  = 8'b0;
        Memory[980]  = 8'b0;
        Memory[981]  = 8'b0;
        Memory[982]  = 8'b0;
        Memory[983]  = 8'b0;
        Memory[984]  = 8'b0;
        Memory[985]  = 8'b0;
        Memory[986]  = 8'b0;
        Memory[987]  = 8'b0;
        Memory[988]  = 8'b0;
        Memory[989]  = 8'b0;
        Memory[990]  = 8'b0;
        Memory[991]  = 8'b0;
        Memory[992]  = 8'b0;
        Memory[993]  = 8'b0;
        Memory[994]  = 8'b0;
        Memory[995]  = 8'b0;
        Memory[996]  = 8'b0;
        Memory[997]  = 8'b0;
        Memory[998]  = 8'b0;
        Memory[999]  = 8'b0;
        Memory[1000] = 8'b0;
        Memory[1001] = 8'b0;
        Memory[1002] = 8'b0;
        Memory[1003] = 8'b0;
        Memory[1004] = 8'b0;
        Memory[1005] = 8'b0;
        Memory[1006] = 8'b0;
        Memory[1007] = 8'b0;
        Memory[1008] = 8'b0;
        Memory[1009] = 8'b0;
        Memory[1010] = 8'b0;
        Memory[1011] = 8'b0;
        Memory[1012] = 8'b0;
        Memory[1013] = 8'b0;
        Memory[1014] = 8'b0;
        Memory[1015] = 8'b0;
        Memory[1016] = 8'b0;
        Memory[1017] = 8'b0;
        Memory[1018] = 8'b0;
        Memory[1019] = 8'b0;
        Memory[1020] = 8'b0;
        Memory[1021] = 8'b0;
        Memory[1022] = 8'b0;
        Memory[1023] = 8'b0;

    end

    // Write bytes
    always @(negedge(clock)) begin

        if ((addr >= 0) || (addr < 1024)) begin

            if (en1h && rw) begin
                Memory[addr] = data1h;                
            end

            if (en1l && rw) begin
                Memory[addr+1] = data1l;
            end
            
            if (en2h && rw) begin
                Memory[addr+2] = data2h;
            end
            
            if (en2l && rw) begin
                Memory[addr+3] = data2l;
            end

        end

    end

    // Read bytes
    assign data1h = (en1h && !rw) ? Memory[addr] : 8'bz;
    assign data1l = (en1l && !rw) ? Memory[addr+1] : 8'bz;
    assign data2h = (en2h && !rw) ? Memory[addr+2] : 8'bz;
    assign data2l = (en2l && !rw) ? Memory[addr+3] : 8'bz;

endmodule
